﻿using Shop.RemoteModel.UserGrade.Model;
using Shop.StoreGatewayModular.Interface;
using WeDonekRpc.ApiGateway.Attr;
using WeDonekRpc.HttpApiGateway;

namespace Shop.StoreGatewayModular.Api
{
    [ApiRouteName("/shop/user/grade/{name}")]
    internal class UserGradeApi : ApiController
    {
        private readonly IUserGradeService _Service;

        public UserGradeApi (IUserGradeService service)
        {
            this._Service = service;
        }

        public UserGradeDto[] Gets ()
        {
            return this._Service.Gets();
        }
    }
}
